package com.yuncheng.mcp.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @title: ExecutorConfig
 * @Author: Liuxk
 * @Date: 2025/5/28 12:45
 */

@Configuration
public class ExecutorConfig {

    @Bean
    public ExecutorService executorService() {
        return Executors.newFixedThreadPool(10); // 创建一个固定大小的线程池
    }
}
